package graduation.claf.service.ifs;

import graduation.claf.pojo.Record;
import graduation.claf.utils.ServerResponse;
import graduation.claf.vo.StatisticInfo;

import java.util.Calendar;
import java.util.List;

public interface IRecordService {

    //添加新的账单
    public ServerResponse AddRecord(Record record);

    //0-今天 1-本周 2-本月 3-今年
    //查询账单sum信息
    public StatisticInfo SumStatistic(String bookId, int type);

    //根据时间区间返回账单明细
    public List<Record> Details(String bookId, Calendar start, Calendar end);

    //分类统计（type：0——支出，1——收入）
    public ServerResponse classifiedStatistic(String bookId,int timeZoneType);

    //分类统计账单明细
    public ServerResponse flowStatistic(String bookId,int timeZoneType);

    //修改流水信息
    public ServerResponse modifyWithId(Record record);

    //删除流水信息
    public ServerResponse deleteWithId(String recordId);

    //流水信息查询
    public ServerResponse searchRecords(String bookId,int timeZone);
}
